﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    /// <summary>
    /// 维修单表头信息 
    /// </summary>
    [Table("repair_info")]
    public class RepairInfo
    {
        /// <summary>
        /// ID，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 维修单号
        /// </summary>
        [Column("repair_no")]
        public string RepairNumber { get; set; }

        /// <summary>
        /// 开单日期
        /// </summary>
        [Column("fill_date")]
        public DateTime FillDate { get; set; }

        /// <summary>
        /// 维修数量
        /// </summary>
        [Column("total_qty")]
        public decimal TotalQty { get; set; }

        /// <summary>
        /// 建档人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; }

        /// <summary>
        /// 建档日期
        /// </summary>
        [Column("create_date")]
        public DateTime? CreateDate { get; set; }
    }
}
